Pular para o conteúdo principal

Defining whether the SUICheckBox will be clickable or not by script using Java

In your Java class, do the following:

public class YourClass extends Component {

// boolean to control whether the SUICheckBox will be clickable or not
public boolean value; // select in the properties the value (true or false)

// creates a new SUICheckBox, @AutoWired selects the component from this object
@AutoWired
private SUICheckBox checkBox;

@Override
public void start() {

}

@Override
public void repeat() {

// defines if the SUICheckBox will be clickable or not according to the boolean value (true or false) "value"
checkBox.setClickable(value);
}
}